package com.tough.engine.base;

import com.tough.engine.common.Size;
import com.tough.engine.common.Position;

public class Body {
	
	public Body next;
	private BodyDef bodyDef;
	private FixtureDef fixtureDef;
	
	public Body(BodyDef bodyDef){
		this.bodyDef = bodyDef;
	}
	
	public void createFixtureDef(FixtureDef fixtureDef){
		this.fixtureDef = fixtureDef;
	}
	
	public Position getPosition(){
		return bodyDef.position;
	}
	
	public Size getSize(){
		return fixtureDef.size;
	}

	public float getMass() {
		return fixtureDef.mass;
	}

	public int getFriction() {
		return fixtureDef.friction;
	}

	public byte getType() {
		return bodyDef.type;
	}
	
}
